package com.topisv.tms.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * 分页查询参数的封装类
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2014-8-7      CC            1.0           Create
 */
public class QueryParamHolder {
	private int start; // 从第几条开始 查。从0开始
	private int pageSize;// 每次查询的数量
	private int curPage;// 当前页码
	private Map<String, String> paramMap;// 原始的参数
	private Map<String, Object> searchParams;// 去掉查询前缀的参数

	public QueryParamHolder() {
		this(0, 20, 1, new HashMap<String, String>(), new HashMap<String, Object>());
	}

	public QueryParamHolder(int start, int pageSize, int curPage, Map<String, String> paramMap, Map<String, Object> searchParams) {
		this.start = start;
		this.pageSize = pageSize;
		this.curPage = curPage;
		this.paramMap = paramMap;
		this.searchParams = searchParams;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurPage() {
		return curPage;
	}

	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}

	public Map<String, String> getParamMap() {
		return paramMap;
	}

	public void setParamMap(Map<String, String> paramMap) {
		this.paramMap = paramMap;
	}

	public Map<String, Object> getSearchParams() {
		return searchParams;
	}

	public void setSearchParams(Map<String, Object> searchParams) {
		this.searchParams = searchParams;
	}
}